import request from '@/utils/request'

// 查询所有活动
export function indexActivities(params) {
  return request({
    url: '/admin/activity/',
    method: 'get',
    params: params
  })
}

// 查询单个活动
export function itemActivity(id) {
  return request({
    url: '/admin/activity/',
    method: 'get'
  })
}

// 导出活动记录
export function exportExcel(params) {
  return request({
    url: '/admin/activity/exportExcel',
    method: 'get',
    responseType: 'blob',
    params: params
  })
}
